<?php

/*
  This model provides all interfaces for user management
 */

class Industry_category_model extends CI_Model {

    protected $lang_id;

    public function __construct() {
        parent::__construct();
        $this->lang_id = get_language_id();
    }
    
    public function getIndustryCategories() {
        $this->db->select('*');
        $this->db->from('industry_category');
        $this->db->join('industry_category_description', 'industry_category.category_id = industry_category_description.category_id');
        
        $this->db->where('industry_category_description.language_id', $this->lang_id);
        
        $query = $this->db->get();

        $results = $query->result();
        return $results;
    }

   

}